<?php

use Illuminate\Routing\Router;


Route::group([
    'prefix'        => 'admin/category',
    'namespace'     => 'Beerus\\Modules\\Category\\Controllers',
    'middleware'    => ['web', 'admin'],
], function (Router $router) {

    $router->get('/', 'CategoryController@index');
    $router->get('/edit/{id?}','CategoryController@edit');
    $router->get('/info/{id?}','CategoryController@info');
    $router->post('/save','CategoryController@save');
    $router->post('/del','CategoryController@del');
    $router->post('/toggle','CategoryController@toggle');

    $router->get('/search/select','SearchController@select');



});
